package com.party.core.service.gatherForm;

import com.party.common.paging.Page;
import com.party.core.model.gatherForm.GatherFormInfo;
import com.party.core.model.member.Member;
import com.party.core.service.IBaseService;

import java.util.List;
import java.util.Map;

public interface IGatherFormInfoService extends IBaseService<GatherFormInfo> {

	Integer getMaxIndex(String projectId);

	List<Map<String, Object>> webListPage(Map<String, Object> params, Page page);

	boolean deleteByProjectId(String projectId, String maxIndex);

    GatherFormInfo getFormInfoByField(String fieldId, Integer rowNo);

	/**
	 * 查询某机构下的所有登录过的自定义人员收集的人
	 * @param partnerId
	 * @return
	 */
	List<Member> getGatherFormInfoMembersByPartnerId(String partnerId);

	Long getCountById(String projectId);

    void deleteByTargetId(String targetId);

	List<GatherFormInfo> getFormInfoByFieldAndProjectId(String projectId,String fieldId);

	List<GatherFormInfo> getFormInfoByMemberId(String memberId,String projectId);

	String getFormInfoValByMemberGroupId(List<String> memberGroupIds,Map<String,Object> params);

}
